package com.scs.application.modules.wm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.query.QueryContext;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.wm.dto.TransferItemDTO;
import com.scs.application.modules.wm.entity.TransferItem;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * Service
 * </p>
 */

public interface TransferItemService extends IBaseService<TransferItem> {
    //扫码入调拨单
    void addTransferItems(String transferId, List<String> sns, String refRfId);

    //调拨单撤销拣货
    void cancelTransferPick(String transferId);

    @Transactional(rollbackFor = Exception.class)
    void updatePrice(String stockId, double skuPriceNew);


    /**
     * 获取本仓库下可冲红的数据
     * @param queryContext
     * @return5
     */
    IPage<TransferItem> pageForRed(QueryContext queryContext);

    /**
     * 根据sn和消耗仓库获取消耗/冲红记录
     * @param sns
     * @param warehouseId
     * @return
     */
    List<TransferItem> getTransferItemBySns(List<String> sns, String warehouseId, String type, String settlementType, String flowStatus, List<String> itemIdReturnFromList);


    /**
     * PDA拣货明细
     * @param transferId
     * @return
     */
    List<TransferItemDTO> getPDAList(String transferId);
}
